package im.yisme.model;

public class LyricsHeader {

	//服务器上的id
	private long remoteId;
	
	//总时间
	private int totalTime;
	
	//是否已上传
	private boolean uploaded;
	
	//是否已评价
	private boolean evaluated;
	
	public LyricsHeader(long remoteId, int totalTime, boolean uploaded, boolean evaluated) {
		super();
		this.remoteId = remoteId;
		this.totalTime = totalTime;
		this.uploaded = uploaded;
		this.evaluated = evaluated;
	}
	public long getRemoteId() {
		return remoteId;
	}
	public void setRemoteId(long remoteId) {
		this.remoteId = remoteId;
	}
	public int getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(int totalTime) {
		this.totalTime = totalTime;
	}
	public boolean isUploaded() {
		return uploaded;
	}
	public void setUploaded(boolean uploaded) {
		this.uploaded = uploaded;
	}
	
	public boolean isEvaluated() {
		return evaluated;
	}
	public void setEvaluated(boolean evaluated) {
		this.evaluated = evaluated;
	}
	public String toString(){
		StringBuffer string = new StringBuffer();
		
		string.append("Id On Server:" + remoteId);
		string.append("\n");
		string.append("总时间:" + totalTime + "ms");
		string.append("\n");
		string.append("是否已上传:");
		if (uploaded) string.append("是"); else string.append("否");
		string.append("\n");
		string.append("是否已评价:");
		if (evaluated) string.append("是"); else string.append("否");
		string.append("\n");
		
		return string.toString();
	}
}

